#include "sample.h"

sample::sample()
{
}

sample::sample(QDomNodeList parameters)
{
    this->longname      = parameters.at(0).toElement().text();
    this->formular      = parameters.at(1).toElement().text();
    this->shortname     = parameters.at(2).toElement().text();
    this->concentration = parameters.at(3).toElement().text();
    this->solvent       = parameters.at(4).toElement().text();
}

QString sample::GetName()
{
    return this->longname.append(" (").append(this->concentration).append(") :").append(this->solvent);
}
